package cn.com.zcode.user.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.com.zcode.core.service.BaseService;
import cn.com.zcode.user.model.InviteCode;
import cn.com.zcode.user.model.LoginInfo;
import cn.com.zcode.user.model.User;

public interface UserService extends BaseService {
	public User getUser(String username, String password,boolean md5);

	public User addUser(User user, String inviteCode);

	public User saveUser(User user);

	public User getUserById(String id);

	public User getUserByName(String string);

	public LoginInfo addLoginInfo(LoginInfo logininfo);

	public boolean getInviteCode(String inviteCode);

	public void updateInviteCode(String userid, String inviteCode);

	public InviteCode addInviteCode(InviteCode code);

	public List<InviteCode> listInviteCodes();

	public void initUser(User user, HttpServletRequest request,HttpServletResponse response,boolean addcookie) ;

	public void destroyUser(User user);

	public List<User> findUsers(String... userids);

	public List<User> findAll();


	
	
}
